import request from '@/utils/request.js'

/**
 * 查看收藏列表
 * @returns
 */
export function getFavoritesList () {
  return request({
    url: '/user/favorites'
  })
}

/**
 * 获取用户的信息资料
 * @returns
 */
export function getUserInfo () {
  return request({
    url: '/user'
  })
}

export function ReleaseConditions () {
  return request({
    url: '/houses/params'
  })
}
/**
 * 上传房屋
 * @param {Object} fm
 * @returns
 */
export function uploadHouse (fm) {
  return request({
    url: '/user/houses',
    method: 'POST',
    data: fm
  })
}
/**
 * 查看已发布的房屋
 * @returns
 */
export function getHouses () {
  return request({
    url: '/user/houses'
  })
}
